home *** CD-ROM | disk | FTP | other *** search
- package assets.objects
- {
- import flash.display.MovieClip;
- import flash.display.SimpleButton;
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
-
- [Embed(source="/_assets/assets.swf", symbol="assets.objects.TargetLogo")]
- public class TargetLogo extends MovieClip
- {
-
-
- private var url:String = "http://ad.doubleclick.net/clk;205717430;15177704;a?http://www.target.com/b?node=682514011";
-
- public var hitBtn:SimpleButton;
-
- public function TargetLogo()
- {
- url = "http://ad.doubleclick.net/clk;205717430;15177704;a?http://www.target.com/b?node=682514011";
- super();
- hitBtn.addEventListener(MouseEvent.CLICK,link);
- addEventListener(Event.REMOVED_FROM_STAGE,removed);
- }
-
- private function link(param1:Event) : *
- {
- var _loc2_:* = undefined;
- _loc2_ = new URLRequest(url);
- navigateToURL(_loc2_);
- }
-
- private function removed(param1:Event) : *
- {
- hitBtn.removeEventListener(MouseEvent.CLICK,link);
- removeEventListener(Event.REMOVED_FROM_STAGE,removed);
- }
- }
- }
-